MyMessageViewHolder

open class MyMessageViewHolder(    parent: ViewGroup,     val contentView: View,     messageListUIParams: MessageListUIParams,     binding: <Error class: unknown class> = SbViewMyMessageBinding.inflate( LayoutInflater.from(parent.context.toComponentListContextThemeWrapper()), )) : MessageViewHolder, EmojiReactionHandler

This ViewHolder has a basic message template for 'My message.' To use it, inherit from this ViewHolder, inflate the view corresponding to the content, and pass it to the constructor.

Since

3.12.0

See also

Constructors

Link copied to clipboard
fun MyMessageViewHolder(    parent: ViewGroup,     contentView: View,     messageListUIParams: MessageListUIParams,     binding: <Error class: unknown class> = SbViewMyMessageBinding.inflate( LayoutInflater.from(parent.context.toComponentListContextThemeWrapper()), ))

Functions

Link copied to clipboard
open override fun bind(    channel: BaseChannel,     message: BaseMessage,     params: MessageListUIParams)

Binds as item view and data.

Link copied to clipboard
open override fun getClickableViewMap(): Map<String, View>

Returns a Map containing views to register a click event with an identifier.

Link copied to clipboard
override fun setEmojiReaction(    reactionList: List<Reaction>,     emojiReactionClickListener: OnItemClickListener<String>?,     emojiReactionLongClickListener: OnItemLongClickListener<String>?,     moreButtonClickListener: View.OnClickListener?)

Sets message reaction data.

Properties

Link copied to clipboard
open val contentView: View